package org.baizhiedu.aspect;

import org.baizhiedu.proxy.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName: TestAspectProxy
 * Description:
 * Date: 2022/11/23 AM 11:23:25
 * <p>
 * project: spring5
 * package: org.baizhiedu.aspect
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class TestAspectProxy {

    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("/applicationContext2.xml");
        UserService userService = (UserService) ctx.getBean("userService");

        //userService.login("suns", "123456");
        userService.register(new User());
    }
}
